using System;

namespace Recruitment.Exercise1
{
	/// <summary>
	/// Represents a candidate.
	/// </summary>
	public class Candidate
	{
		public Candidate()
		{ }
		
		public Candidate(string name)
		{
			_name = name;
		}

		private string _name;

		public string Name
		{
			get
			{
				return _name;
			}
			set
			{
				if (value == null) throw new ArgumentNullException("value", "The name cannot be a null string.");
				_name = value;
			}
		}
	}
}